<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        [v-cloak]{
            display: none;
        }
    </style>
</head>
<script src="./js/vue.js"></script>
<!-- 
    解决Mustache语法中的闪屏问题?
    在元素中引入 v-cloak  然后在style中添加样式 [v-cloak]{ display:none; }
 -->
 <body>
    <div class="box" v-cloak>
        <!-- v-model -->
        <input type="text" v-model="msg">
        <h1>{{msg}}</h1>
    </div>
    <script>
        const vm = new Vue({
            el:'.box',
            data:{
                msg:'444',
            }
        })
    </script>
</body>
</html>